home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks ’95 / NetFractal™ / Fractal 8 source / NetPoint.h < prev    next >
Encoding:
Text File  |  1995-06-24  |  403 b   |  32 lines  |  [TEXT/MPCC]

  1. //    NetPoint.h
  2.  
  3. #pragma once
  4.  
  5. #include <OpenTransport.h>
  6. #include <OpenTptInternet.h>
  7.  
  8.  
  9. class NetPoint
  10.  
  11. {
  12. protected:
  13.     Boolean        fCloseOnDestroy;
  14.     EndpointRef    fEndpoint;
  15.     union {
  16.         InetAddress    inet;
  17.     }            fMyAddress;
  18. public:
  19.                 NetPoint();
  20.     virtual        ~NetPoint();
  21.  
  22.     virtual OSErr    Open(
  23.                         const char *protocol);
  24.     virtual OSErr    Bind(
  25.                         short port);
  26.     virtual OSErr    Close();
  27.  
  28. };
  29.  
  30. #define OUR_PORT 8799
  31.  
  32.